package cn.chengpengper.rpc.test.spring.boot.consumer.service.impl;

import cn.chengpengper.rpc.annotation.RpcReference;
import cn.chengpengper.rpc.test.api.RealMethodDemoService;
import cn.chengpengper.rpc.test.spring.boot.consumer.service.ConsumerService;
import org.springframework.stereotype.Service;

/**
 * @author huchengpeng
 */
@Service
public class ConsumerServiceImpl implements ConsumerService {

    @RpcReference(registryType = "nacos",registryAddress = "127.0.0.1:8848",group = "catwing",enableResultCache = true)
    private RealMethodDemoService realMethodDemoService;
    @Override
    public String hello(String name) {
        return realMethodDemoService.hello(name);
    }
}
